import { ref } from "vue";

export default () => {
  const currentIndex = ref(-1);
  const handleItemClick = (i, url) => {
    currentIndex.value = i;
    myApi.open(url);
  };
  return { currentIndex, handleItemClick };
};
